﻿using Abp.AutoMapper;
using GN.Pay.Core.Entities;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GN.Pay.Application.MerchantApp.Dto.Input
{
    /// <summary>
    /// 商户应用信息添加输入
    /// </summary>
    [AutoMap(typeof(MerchantAppInfo))]
    public class MerchantAppInfoAddInput
    {
        /// <summary>
        /// 商家,临时
        /// </summary>
        [Required]
        [StringLength(maximumLength: 32)]
        public string MerchantId { get; set; }

        /// <summary>
        /// 应用名称
        /// </summary>
        [Required]
        [StringLength(maximumLength: 50)]
        public string AppName { get; set; }

        /// <summary>
        /// 应用主页
        /// </summary>
        [Required]
        [StringLength(maximumLength: 255)]
        [Url]
        public string AppHomeUrl { get; set; }

        /// <summary>
        /// 付款默认通知地址
        /// </summary>
        [StringLength(maximumLength: 255)]
        [Url]
        public string PayDefaultNotifyUrl { get; set; }

        /// <summary>
        /// 付款默认返回地址
        /// </summary>
        [StringLength(maximumLength: 255)]
        [Url]
        public string PayDefaultReturnUrl { get; set; }

        /// <summary>
        /// 退款默认通知地址
        /// </summary>
        [StringLength(maximumLength: 255)]
        public string RefundDefaultNotifyUrl { get; set; }
    }
}
